package cn.ainit.byf.wordbook;

import java.io.Serializable;


public class ByfBascodeitemPK implements Serializable{
	
	private static final long serialVersionUID = -5082049308936689283L;

	private String codeSetId;
	
	private String codeId;

	public String getCodeSetId() {
		return codeSetId;
	}

	public void setCodeSetId(String codeSetId) {
		this.codeSetId = codeSetId;
	}

	public String getCodeId() {
		return codeId;
	}

	public void setCodeId(String codeId) {
		this.codeId = codeId;
	}
	
	@Override
	public boolean equals(Object obj) {
		if(obj == null){
			return false;
		}
		if(obj == this){
			return true;
		}
		if(obj instanceof ByfBascodeitemPK){
			ByfBascodeitemPK other = (ByfBascodeitemPK)obj;
			return this.codeId.equals(other.codeId) && this.codeSetId.equals(other.codeSetId);
		}
		return false;
	}

	@Override
	public int hashCode() {
		return codeId.hashCode()+codeSetId.hashCode();
	}
}
